

/*
	https://xie.infoq.cn/article/dc42f5648029382ac816127ad
	https://article.itxueyuan.com/9qlyPW


*/
class hcPng
{
public:
	void binToChunk(unsigned char *p, int len)
	{


	}

	bool checkPngHeadr(unsigned char *p, int len)
	{
		if (len <= 8 + 13)
			return false;
		unsigned int *p4 = (unsigned int *)p;
		if (p4[0] != 0x474e5089)	//png ͷ
			return false;
		if (p4[0] != 0x0a1a0a0d)
			return false;

	}

	bool getIHDR_Chunk()
	{

	}
};

